variance
Type
function
Summary
Returns the sample variance of a list of numbers.
Syntax
variance(<numbersList>)
Description
Use the variance function to analyze the amount of spread in a list of numbers.
The variance function was added in LiveCode 6.1 to complement the standardDeviation function. The variance is a measure of how widely distributed the numbers in the numbersList are.
If a math operation on finite inputs produces a non-finite output, an execution error is thrown. See math operations for more information.
Parameters
Name | Type | Description |
---|---|---|
numbersList | A comma-separated list of numbers, or an expression that evaluates to such a list, or an array containing only numbers. |
Examples
variance(8,10,12) -- returns 4
put variance(studentScores) into field "Sample Variance"
Related
control structure: function
function: populationVariance, averageDeviation, variance, average, median, populationStandardDeviation, sum, standardDeviation
glossary: return, math operation
Compatibility and Support
Introduced
LiveCode 6.1
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile